interface Fly {
    void flyAction();
}

class Bird implements Fly {
    @Override
    public void flyAction() {
        System.out.println("鸟会飞行");
    }
}

class Plane implements Fly {
    @Override
    public void flyAction() {
        System.out.println("飞机能飞行");
    }
}

class Test4_2_Interface {
    public static void main(String[] args) {
        Fly bird = new Bird();
        bird.flyAction();
        Fly plane = new Plane();
        plane.flyAction();
    }
}




class Person {
    private String name;
    private int age;

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void run() {
        System.out.println(name + "在跑步");
    }
}

class Student extends Person {
    private int id;
    private int score;

    public Student(String name, int age, int id, int score) {
        super(name, age);
        this.id = id;
        this.score = score;
    }

    public void study() {
        System.out.println("学生在学习");
    }
}

interface ISingAble {
    void sing();
}

interface IFlyAble {
    void fly();
}

class SuperStudent extends Student implements ISingAble, IFlyAble {
    public SuperStudent(String name, int age, int id, int score) {
        super(name, age, id, score);
    }

    @Override
    public void sing() {
        System.out.println("学生在唱歌");
    }

    @Override
    public void fly() {
        System.out.println("学生在飞行");
    }
}